package org.f0rb.core.event;

import java.util.EventObject;

/**
 * Class org.f0rb.core.event description goes here.
 *
 * @author Yuan Zhen
 * @version 1.0.0 11-11-16
 */
public abstract class DefaultEvent<M> extends EventObject {
    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public DefaultEvent(Object source) {
        super(source);
    }

    /**
     * 获取Event要处理的指定类型的对象
     * @return M
     */
    public abstract M getModel();
}
